package com.sumer.brain.sys.model.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sumer.brain.sys.model.entity.SysRole;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class SysUserResp {

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "电话号码")
    private String phone;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "昵称")
    private String nickname;

    @Schema(description = "姓名")
    private String name;

    @Schema(description = "性别，0未知，1男，2女")
    private String gender;

    @Schema(description = "邮箱地址")
    private String email;

    @Schema(description = "所属部门ID")
    private Long deptId;

    @Schema(description = "锁定标记，0未锁定，1已锁定")
    private Integer lockFlag;

    @Schema(description = "删除标记，0未删除，1已删除")
    private Integer delFlag;

    @Schema(description = "微信登录openId")
    private String wxOpenid;

    @Schema(description = "小程序openId")
    private String miniOpenid;

    @Schema(description = "QQ openId")
    private String qqOpenid;

    @Schema(description = "码云标识")
    private String giteeLogin;

    @Schema(description = "开源中国标识")
    private String oscId;

    @Schema(description = "所属租户ID")
    private Long tenantId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "角色列表")
    private List<SysRole> roles;

    @Schema(description = "菜单列表")
    private List<SysMenuResp> menus;

    @Schema(description = "权限列表")
    private List<String> permissions;
}
